const fp = require('lodash/fp')
//Hello    Word           hello_word
const pointfree = fp.flowRight(fp.replace(/\s+/g,'_'),fp.toLower)
console.log(pointfree('Hello    Word'))